package com.donquijote.dynamic.config;

import java.lang.reflect.Proxy;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-27 09:54
 */
public class NewTimerProxy {
    public static Object newInstance(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), new TimerProxy(target));
    }
}
